import request from '@/utils/request'

// 增加用户
export function addStaff(data) {
  return request({
    url: '/declare/companyPersonnel/addCompanyPersonnel',
    method: 'post',
    data
  })
}

// 获取用户详细信息
export function getStaff(id) {
  return request({
    url: '/declare/companyPersonnel/getCompanyPersonnelByRelationId',
    method: 'get',
    params: {
      relationId: id
    }
  })
}

// 修改用户列表信息
export function updateStaff(data) {
  return request({
    url: '/declare/companyPersonnel/updateCompanyPersonnel',
    method: 'post',
    data
  })
}

